import request from "@/utils/request";

export const getProductListApi = (categoryId, goodsName, page) => {
  return request("/goods/list", {
    params: {
      categoryId,
      goodsName,
      page,
    },
  });
};
export const getProductDetailApi = (goodsId) => {
  return request("/goods/detail", {
    params: {
      goodsId,
    },
  });
};
export const getCommentListApi = (goodsId, limit) => {
  return request("/comment/listRows", {
    params: {
      goodsId,
      limit,
    },
  });
};
